Reducing Lambda Terms with Traversals (preprint) February 26, 2018

نویسنده

  • William Blum
چکیده

We introduce a method to evaluate untyped lambda terms by combining the theory of traversals,a term-tree traversing techniques inspired from Game Semantics [12, 8], with judicious use of theeta-conversion rule of the lambda calculus.The traversal theory of the simply-typed lambda calculus relies on the eta-long transform toensure that when traversing an application, there is a subterm representing each possible operator’sargument[8, 12]. In the untyped setting, we instead exhibit the missing operand via ad-hoc instan-tiation of the eta-expansion rule, which allows the traversal to proceed as if the operand existedin the original term. This gives rise to a more generic concept of traversals for lambda terms. Anotable improvement, in addition to handling untyped terms, is that no preliminary transformationis required: the original unaltered lambda term is traversed.We show that by bounding the non-determinism of the traversal rule for free variables, one caneffectively compute a set of traversals characterizing the paths in the tree representation of the beta-normal form, when it exists. This yields an evaluation algorithm for untyped lambda-terms. Weprove correctness by showing that traversals implement leftmost linear reduction, a generalizationof the head linear reduction of Danoset al. [10, 9].

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reducing Lambda Terms with Traversals

We introduce a method to evaluate untyped lambda terms by combining the theory of traversals, a term-tree traversing technique inspired from Game Semantics, with judicious use of the eta-conversion rule of the lambda calculus. The traversal theory of the simply-typed lambda calculus relies on the eta-long transform to ensure that when traversing an application, there is a subterm representing e...

متن کامل

Higher-Order Equational Pattern Anti-Unification [Preprint]

We consider anti-unification for simply typed lambda terms in associative, commutative, and associativecommutative theories and develop a sound and complete algorithm which takes two lambda terms and computes their generalizations in the form of higher-order patterns. The problem is finitary: the minimal complete set of generalizations contains finitely many elements. We define the notion of op...

متن کامل

How Does the Credit Rating React to the Function of D&o Insurance?

Article History Received: 6 February 2018 Revised: 21 February 2018 Accepted: 26 February 2018 Published: 28 February 2018

متن کامل

On k-colored Lambda Terms and Their Skeletons

The paper describes an application of logic programming to the modeling of difficult combinatorial properties of lambda terms, with focus on the class of simply typed terms. Lambda terms in de Bruijn notation are Motzkin trees (also called binary-unary trees) with indices at their leaves counting up on the path to the root the steps to their lambda binder. As a generalization of affine lambda t...

متن کامل

Higher-Order Equational Pattern Anti-Unification∗

We consider anti-unification for simply typed lambda terms in associative, commutative, and associative-commutative theories and develop a sound and complete algorithm which takes two lambda terms and computes their generalizations in the form of higher-order patterns. The problem is finitary: the minimal complete set of generalizations contains finitely many elements. We define the notion of o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2018